package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.common.service.LogicService;
import edu.ynu.se.xiecheng.achitectureclass.dao.DeviceDao;
import edu.ynu.se.xiecheng.achitectureclass.entity.Device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeviceService extends LogicService<DeviceDao, Device, Long> {

    public DeviceService(@Autowired DeviceDao dao) {
        super(dao);
    }

    public Device getDeviceByDeviceNumber(String deviceNumber) {
        return dao.getDeviceByDeviceNumber(deviceNumber);
    }

}
